﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Bussiness.Service;

namespace Bussiness.View.BackEnd.User_Control
{
    public partial class VerticalMenu : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Appcontex app = (Appcontex)Session["app"];
            this.userOnline.Text = "User : " + app.TenDangNhap;

            if(app.IsAdmin == false){
                this.TreePanel1.GetNodeUIElement("BCTK").Hide();
           

                this.TreePanel1.GetNodeUIElement("QLKH").Hide();
                this.TreePanel1.GetNodeUIElement("QLBV").Hide();
                this.TreePanel1.GetNodeUIElement("QLSP_themmoi").Hide();
                this.TreePanel1.GetNodeUIElement("QLSP_danhmuc").Hide();

                
            }
        }
    }
}